package com.zhengaz.service.blog.vo;

import com.fasterxml.jackson.annotation.JsonFormat;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import java.time.LocalDateTime;

/**
 * @author zhengzg
 * @create 2023-11-26 14:43
 */
@Data
@ApiModel("文章列表响应实体")
public class BlogArticleVo {

    @ApiModelProperty("主键")
    private Integer id;

    @ApiModelProperty("类型id")
    private String typeId;

    @ApiModelProperty("类型名称")
    private String typeName;

    @ApiModelProperty("标题")
    private String title;

    @ApiModelProperty("文章简介")
    private String introduce;

    @ApiModelProperty("文章内容")
    private String articleContent;

    @ApiModelProperty("创建时间")
    @JsonFormat(pattern = "yyyy-MM-dd")
    private LocalDateTime createTime;

    @ApiModelProperty("查看次数")
    private Integer viewCount;
}
